﻿using System.Collections.ObjectModel;
using System.ComponentModel;

namespace ListBox_binding {

  public class BindData {
    public void add(string str) { data_.Add(str); }
    public void remove_at(int n) { if ( n >= 0 && n < data_.Count ) data_.RemoveAt(n); }
    public ObservableCollection<string> Items { get { return data_; } }

    private ObservableCollection<string> data_ = new ObservableCollection<string>();
  }

}
